﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Net.Http.Headers;
using System.Text;
using System.Web;

namespace IDotNet.MapLibs.Web
{
    public static class CommFunc
    {

        public static string UrlEncode(this string str)
        {
            return HttpUtility.UrlEncode(str);
        }

        public static string GetUTF8String(this byte[] bytes)
        {
            return Encoding.UTF8.GetString(bytes);
        }


        public static string GetAppSettingValue(string key)
        {
            return ConfigurationManager.AppSettings[key];
        }
    }
}